package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Order;

import java.util.Date;

public interface OrderService {
    // 用户下单
    void subit(Order order);
//历史订单 分页查询

    //分页查询订单信息
    Page<Order> findByPage(Integer pageNum, Integer pageSize);
    //分页(后台用)
    Page<Order> findByPage2(Long number, Date beginTime, Date endTime, Integer pageNum, Integer pageSize);

}
